// 事件的常用API
#include <stdio.h>
// 过程中给以下文件添加了注释，如果运行出问题，在备份中取一个新的文件覆盖
#include "./src/kernel/liteos_m/kal/cmsis/cmsis_liteos2.c"
#include <unistd.h>

#include "ohos_init.h"
#include "cmsis_os2.h"
#include <unistd.h>
#include "hi_wifi_api.h"
//#include "wifi_sta.h"
#include "lwip/ip_addr.h"
#include "lwip/netifapi.h"

#include "lwip/sockets.h"

// 创建与删除

osEventFlagsId_t osEventFlagsNew (const osEventFlagsAttr_t *attr);
osStatus_t osEventFlagsDelete (osEventFlagsId_t ef_id);

// 事件的设置与清除

osStatus_t osEventFlagsSet(osEventFlagsId_t ef_id, uint32_t event_bits);
osStatus_t osEventFlagsClear(osEventFlagsId_t ef_id, uint32_t event_bits);

// 事件的等待

osStatus_t osEventFlagsWait(osEventFlagsId_t ef_id, uint32_t event_bits, uint32_t option, uint32_t timeout);

// 获取事件信息

uint32_t osEventFlagsGet (osEventFlagsId_t ef_id);
const char *osEventFlagsGetName (osEventFlagsId_t ef_id);
